//// Project name:JavaRedis
//// Creator:muhong
//// Date time:2022/11/25,10:33 下午
//// Name:NioSocketChannel
//
//package org.gmh.server;
//
//import org.gmh.channel.nio.AbstractNioChannel;
//import org.gmh.channel.handler.ChannelPipeline;
//
//import java.nio.channels.SocketChannel;
//
//public class OldNioSocketChannel  {
//
//    SocketChannel client;
//
//    ChannelPipeline pipeline;
//
//    public OldNioSocketChannel(SocketChannel client, ChannelPipeline pipeline) {
//        this.client = client;
//        this.pipeline = pipeline;
//    }
//
//    public int doRead() {
//        // handler 应该调用这里，后续再实现
//        return pipeline.handleRead(this);
//    }
//
//    public int doWrite() {
//        return pipeline.handleWrite(this);
//    }
//}
